package com.wangs.test;

import java.math.BigDecimal;

public class BigDecimalTest {
    public static void main(String[] args) {
        int a = 38;
        int b = 4;
        double v = new BigDecimal((float) 34 / 38).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
        System.out.println(v);
    }
}
